package com.yonyou.gmmc.service.pointactivity.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 省.市.县模型表
 * @author baodu
 *
 */
@Table(name= "TM_REGION")
public class TmRegion {
    
	//定义属性与数据库字段对应关系
	@Id
	@Column(name = "REGION_CODE")
	@GeneratedValue(generator = "JDBC")
	private String regionCode;  //地区编码
	
	@Column(name = "REGION_NAME")	
	private String regionName;  //地区名称
	
	@Column(name = "PARENT_CODE")	
	private String parentName; // 父级地区编码
	
	@Column(name="REGION_TYPE")
	private String regionType;  //父级地区类型
	
	@Column(name="DELETE_FLAG")
	private String deleteFlag;  //是否删除
	
	@Column(name="ROME")
	private String rome;  //主数据
	
	@Column(name="ZM_CODE")
	private String zmCode;  //主数据
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name="INCREMENTAL_TIME")
	private Date incrementalTime; //增量时间戳
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name="CREATE_DATE")
	private Date createDate;  //创建时间
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name="UPDATE_DATE")
	private Date updateDate;   //更新时间
	
	@Column(name="CREATE_BY")
	private Integer createBy;  //创建人
	
	@Column(name="UPDATE_BY")
	private Integer updateBy;   //修改人
	
	@Column(name="ALEPH")
	private String aleph;

	public String getRegionCode() {
		return regionCode;
	}

	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}

	public String getRegionName() {
		return regionName;
	}

	public void setRegionName(String regionName) {
		this.regionName = regionName;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getRegionType() {
		return regionType;
	}

	public void setRegionType(String regionType) {
		this.regionType = regionType;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public String getRome() {
		return rome;
	}

	public void setRome(String rome) {
		this.rome = rome;
	}

	public String getZmCode() {
		return zmCode;
	}

	public void setZmCode(String zmCode) {
		this.zmCode = zmCode;
	}

	public Date getIncrementalTime() {
		return incrementalTime;
	}

	public void setIncrementalTime(Date incrementalTime) {
		this.incrementalTime = incrementalTime;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getCreateBy() {
		return createBy;
	}

	public void setCreateBy(Integer createBy) {
		this.createBy = createBy;
	}

	public Integer getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(Integer updateBy) {
		this.updateBy = updateBy;
	}

	public String getAleph() {
		return aleph;
	}

	public void setAleph(String aleph) {
		this.aleph = aleph;
	}    
	
	
}
